<%@ page language="java" contentType="text/html; charset=UTF-8"
	isELIgnored="false" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="f"%>
<%@ taglib uri="/mytag" prefix="yjd"%>
<script
	src="${requestScope.FPWEB.staticRootPath }/Js/Plugins/Echarts/echarts.min.js"></script>
	
	<div class="wrap">
	<div class="J_Chart_Panel">
		<div class="h_a1" style="clear: both;">
			<span class="title">渠道</span>
			<div class="yjd-tip">
				<div style="width:500px;">
		1、注册用户数：在指定的时间段内，通过某一发布渠道有过注册医界贷行为的用户<br/>
		2、充值用户数：在指定的时间段内，通过某一发布渠道注册，在医界贷有过充值行为的用户（含网银充值，快捷充值；不包含借款账户充值金额）<br/>
		3、投资用户数：在指定的时间段内，通过某一发布渠道注册，有过投资医界贷行为的用户（含投资“投资项目”、债权转让、小钱包；不含医信宝）<br/>
		4、充值金额：在指定的时间段内，通过某一发布渠道注册，医界贷网站用户成功充值金额（含网银充值，快捷充值；不包含借款账户充值金额）<br/>
		5、投资金额：在指定的时间段内，通过某一发布渠道注册，在医界贷投资“投资项目”、“债权转让”、“小钱包”金额总和
				</div>
			</div>
		</div>
		<form method="post" id="sumary" autocomplete="off"
			action="${requestScope.FPWEB.rootPath }/market/summary${requestScope.FPWEB.urlStuff}">
			<div class="search_type cc">
				<label>起始时间：</label> <input type="input" max="${end }"
					min="${start }" name="start" class="input length_1 mr10 J_date"
					value="${start }"> <label>结束时间：</label> <input type="input"
					max="${end }" min="${start }" name="end"
					class="input length_1 mr10 J_date" value="${end }">
				<label>渠道：</label> 
				<select name="channel" class="mr10">
				<c:forEach items="${channel }" var="item" varStatus="i">
					<option value="${item.id }">${item.channel_name }</option>
				</c:forEach>
				</select>
				<button id="search" type="button" class="btn length_1">搜索</button>
			</div>
		</form>
		<div class="count cc" id="cbox">
			<div class="c-box">
				<div class="c-box-head">注册用户数</div>
				<div class="c-box-con">
					<span name="register_account" class="number">0</span> <span>人</span>
				</div>
			</div>
			<div class="c-box">
				<div class="c-box-head">充值用户数</div>
				<div class="c-box-con">
					<span name="recharge_account" class="number">0</span> <span>人</span>
				</div>
			</div>
			<div class="c-box">
				<div class="c-box-head">投资用户数</div>
				<div class="c-box-con">
					<span name="invest_account" class="number">0</span> <span>人</span>
				</div>
			</div>
			<div class="c-box">
				<div class="c-box-head">充值金额</div>
				<div class="c-box-con">
					<span name="recharge_price" class="number">0</span> <span>元</span>
				</div>
			</div>
			<div class="c-box">
				<div class="c-box-head">投资金额</div>
				<div class="c-box-con">
					<span name="invest_price" class="number">0</span> <span>元</span>
				</div>
			</div>
		</div>
	</div>
	<%@include file="/WEB-INF/jsp/market/signUp.jsp"%>
	<%@include file="/WEB-INF/jsp/market/rech.jsp"%>
	<%@include file="/WEB-INF/jsp/market/invest.jsp"%>
	<%@include file="/WEB-INF/jsp/market/rechargeMoney.jsp"%>
	<%@include file="/WEB-INF/jsp/market/investMoney.jsp"%>
	<%-- <%@include file="/WEB-INF/jsp/userStatistic/signIn.jsp"%> --%>

	<script>
		YJD.use('AppAdminCommon');
		YJD.use('AppBICommon');
		var form = $("#sumary");
		$("#search").click(function() {
			addCompareData();
		});
		function addCompareData() {
			$.ajax({
				type : "post",
				url : form.attr("action"),
				data : form.serializeArray(), // 你的formid
				error : function(request) {
					alert("连接失败！");
				},
				success : function(result) {
					if (result.state == 1) {
						$("span[name='register_account']").text(
								result.data.register_account);
						$("span[name='login_account']").text(
								result.data.login_account);
						$("span[name='recharge_account']").text(
								result.data.recharge_account);
						$("span[name='invest_account']").text(
								result.data.invest_account);
						$("span[name='recharge_price']").text(
								result.data.recharge_price);
						$("span[name='invest_price']").text(
								result.data.invest_price);
					}
				}
			});
		}
		addCompareData();
		
	</script>
</div>